package com.hzncc.flowable_diboot.excel.model;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.lang.Double;
import java.math.BigDecimal;
import java.util.List;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.diboot.core.util.D;
import com.diboot.core.util.V;
import com.diboot.file.excel.BaseExcelModel;
import com.diboot.file.excel.annotation.ExcelBindDict;
import com.diboot.file.excel.annotation.ExcelBindField;
import com.diboot.file.excel.annotation.ExcelOption;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import jakarta.validation.constraints.NotNull;

import com.hzncc.flowable_diboot.entity.CustomerSeas;

import com.hzncc.flowable_diboot.entity.Customer;

/**
* 客户公海 导入model定义
*
* @author MyName
* @version 1.0
* @date 2024-05-15
 * Copyright © MyCorp
*/
@Getter
@Setter
@ExcelIgnoreUnannotated
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 1)
public class CustomerSeasImportModel extends BaseExcelModel {
    /**
    * 进入公海天数
    */
    @ExcelProperty(value = "进入公海天数")
    private Long enterDays;
    /**
    * 进入公海时间
    */
    @ExcelProperty(value = "进入公海时间")
    private String enterTime;
    /**
    * 进入公海理由
    */
    @Length(max=500, message="进入公海理由长度应小于500")
    @ExcelProperty(value = "进入公海理由")
    private String enterReason;
    /**
    * 客户名称
    */
    @ExcelBindField(
    entity = Customer.class,
    field = "name",
    setIdField = "name"
    )
    @ExcelProperty(value = "客户名称")
    private String nameLabel;
    private String name;

}